<?php
/*
 * @Author: Zhang Yingying
 * @Date: 2020-12-09 21:55:52
 * @LastEditors: Zhang Yingying
 * @LastEditTime: 2020-12-14 23:15:27
 */
namespace app\middleware;
use think\facade\Log;

class Before
{
    public function handle($request, \Closure $next)
    {
        $response = $next($request);
        Log::write("前置中间件执行");
        // 添加中间件执行代码
        return $response;
    }
}
